package com.pomelo.tiku.adapters;

import android.content.Context;
import android.view.View;
import android.widget.TextView;

import androidx.recyclerview.widget.RecyclerView;

import com.pomelo.tiku.R;

import java.util.List;

/**
 * @author liuxiangwang
 * @date .
 */
public class ConcreteOccupationAdapter extends BaseAdapter<String>{
    private TextView tv_one;
    private TextView tv_two;
    private TextView tv_three;
    private TextView tv_four;
    public ConcreteOccupationAdapter(List<String> list) {
        super(list);
    }

    @Override
    public void onBindView(List<String> list, String data, int pos, RecyclerView.ViewHolder holder, Context context, View view) {
        tv_one = view.findViewById(R.id.tv_one);
        tv_two = view.findViewById(R.id.tv_two);
        tv_three = view.findViewById(R.id.tv_three);
        tv_four = view.findViewById(R.id.tv_four);
        tv_one.setText(data);
        tv_two.setText(data);
        tv_three.setText(data);
        tv_four.setText(data);
    }

    @Override
    public int setLayout() {
        return R.layout.item_industry_layout;
    }
}
